package kr.co.icebird.spring3.app.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import kr.co.icebird.spring3.app.model.Member;
import kr.co.icebird.spring3.config.SampleData;

@Repository
public class MemberDaoImpl implements MemberDao {

	private final static List<Member> sample = SampleData.getMemberList(5);

	public List<Member> getMemberList() {
		return sample;
	}

	public Member getMember(Long id) {
		return (Member) sample.get(id.intValue());
	}

}
